/**
 * file
 */
package com.tdkj.model.newShop;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * 
 * FileName: ShopCommodity.java
 * 
 * @Description: TODO商品基本信息表
 * 
 *               All rights Reserved, Designed By ZTE-ITS
 * 
 *               Copyright: Copyright(C) 2010-2011
 * 
 *               Company 天成科技有限公司
 * 
 * @author: 李兴建
 * 
 * @version V1.0
 * 
 *          Createdate: 2012-5-29 下午08:52:44
 * 
 * 
 * 
 *          Modification History:
 * 
 *          Date Author Version Discription
 * 
 * 
 * 
 *          
 *          ----------------------------------------------------------------------
 *          -------------
 * 
 *          2012-5-29 李兴建 1.0 1.0
 * 
 *          Why & What is modified: <修改原因描述>
 */
@Entity
@Table(name = "Shop_Commodity")
public class ShopCommodity extends BaseEntity {

	private static final long serialVersionUID = 4503111746997577821L;
	//商家
	private BeanUser beanUser;
	// 类别
	private ShopCommodityType commodityType;
	
	// 出售类型 {0:一口价, 1:拍卖}
	private Integer saleType;
	// ---------------------------------商品基本信息-----------------------------------------
	// 宝贝类型{0:全新 1:二手 2:个人闲置 }
	private Integer babyType;
	// 商品标题
	private String commodityTitle;
	// 一口价
	private double price;
	// 商家编码
	private String businessesEncoding;
	// 商品数量
	private Integer commodityNumber;
	// 商品图片
	private String goodsPictures;
	// 飘彩设置:颜色
	private String floatingColor;
	// 飘彩设置:时间
	private String floatingTime;
	// 关键词
	private String keyword;
	// 详细描述
	private String detailedDescription;
	// 起拍价
	private double startingPrice;
	// 最低加价幅度
	private double lowestFare;
	// ---------------------------------商品物流信息-----------------------------------------
	// 所在地
	private String location;
	// 运费类型 {0:卖家承担运费 1:买家承担运费}
	private Integer FreightTypes;
	// 平邮
	private double surfacePrice;
	// 快递
	private double expressPrice;
	// EMS
	private double emsPrice;
	// ---------------------------------其他信息-----------------------------------------
	// 有效期 {0:7天 1:14天}
	private Integer effective;
	// 发票 {0:无 1：有}
	private Integer invoice;
	// 保修 {0:否 1：有}
	private Integer warranty;
	// 自动重发 {0:否 1：是}
	private Integer automaticRepeat;

	
	@ManyToOne(cascade={CascadeType.REFRESH})
	@JoinColumn(name="commodityTypeid")
	public ShopCommodityType getCommodityType() {
		return commodityType;
	}

	public void setCommodityType(ShopCommodityType commodityType) {
		this.commodityType = commodityType;
	}
	@ManyToOne(cascade={CascadeType.REFRESH})
	@JoinColumn(name="beanUserId")
	public BeanUser getBeanUser() {
		return beanUser;
	}

	public void setBeanUser(BeanUser beanUser) {
		this.beanUser = beanUser;
	}
	public Integer getSaleType() {
		return saleType;
	}

	public void setSaleType(Integer saleType) {
		this.saleType = saleType;
	}

	public Integer getBabyType() {
		return babyType;
	}
	

	public void setBabyType(Integer babyType) {
		this.babyType = babyType;
	}

	public String getCommodityTitle() {
		return commodityTitle;
	}

	public void setCommodityTitle(String commodityTitle) {
		this.commodityTitle = commodityTitle;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getBusinessesEncoding() {
		return businessesEncoding;
	}

	public void setBusinessesEncoding(String businessesEncoding) {
		this.businessesEncoding = businessesEncoding;
	}

	public Integer getCommodityNumber() {
		return commodityNumber;
	}

	public void setCommodityNumber(Integer commodityNumber) {
		this.commodityNumber = commodityNumber;
	}

	public String getGoodsPictures() {
		return goodsPictures;
	}

	public void setGoodsPictures(String goodsPictures) {
		this.goodsPictures = goodsPictures;
	}

	public String getFloatingColor() {
		return floatingColor;
	}

	public void setFloatingColor(String floatingColor) {
		this.floatingColor = floatingColor;
	}

	public String getFloatingTime() {
		return floatingTime;
	}

	public void setFloatingTime(String floatingTime) {
		this.floatingTime = floatingTime;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getDetailedDescription() {
		return detailedDescription;
	}

	public void setDetailedDescription(String detailedDescription) {
		this.detailedDescription = detailedDescription;
	}

	public double getStartingPrice() {
		return startingPrice;
	}

	public void setStartingPrice(double startingPrice) {
		this.startingPrice = startingPrice;
	}

	public double getLowestFare() {
		return lowestFare;
	}

	public void setLowestFare(double lowestFare) {
		this.lowestFare = lowestFare;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Integer getFreightTypes() {
		return FreightTypes;
	}

	public void setFreightTypes(Integer freightTypes) {
		FreightTypes = freightTypes;
	}

	public double getSurfacePrice() {
		return surfacePrice;
	}

	public void setSurfacePrice(double surfacePrice) {
		this.surfacePrice = surfacePrice;
	}

	public double getExpressPrice() {
		return expressPrice;
	}

	public void setExpressPrice(double expressPrice) {
		this.expressPrice = expressPrice;
	}

	public double getEmsPrice() {
		return emsPrice;
	}

	public void setEmsPrice(double emsPrice) {
		this.emsPrice = emsPrice;
	}

	public Integer getEffective() {
		return effective;
	}

	public void setEffective(Integer effective) {
		this.effective = effective;
	}

	public Integer getInvoice() {
		return invoice;
	}

	public void setInvoice(Integer invoice) {
		this.invoice = invoice;
	}

	public Integer getWarranty() {
		return warranty;
	}

	public void setWarranty(Integer warranty) {
		this.warranty = warranty;
	}

	public Integer getAutomaticRepeat() {
		return automaticRepeat;
	}

	public void setAutomaticRepeat(Integer automaticRepeat) {
		this.automaticRepeat = automaticRepeat;
	}

}
